package game;

import javax.swing.*;
import javax.swing.JFrame;

/**
 * @author jk
 * @date 2021/2/21 0:19
 */
public class Main {

    public static void main(String[] args) {
        int[][] map= getRandomMap();
        Frame frame = new Frame(map);
        frame.setVisible(true);
        }

    public static int[][] getRandomMap(){
        //todo 这里返回一个随机的数组
        int[][] arr = new int[10][10];
        int i1;
        for (int i = 0; i <10; i++) {
            for (int j = 0; j <10; j++) {
               i1=(int)(Math.random()*2);
               arr[i][j] =i1;
            }
        }
        return arr;
    }
}
